﻿@model IList<mBlog.ViewModels.PostView>
@foreach (var pv in Model)
{ 
    <div class="post">
        <h3>
            <a href="@pv.Post.Url">@pv.Post.Title</a>
        </h3>
        <div class="entry">
            <p>
                @Html.Raw(pv.Post.Excerpt)
                <a href="@pv.Post.Url">阅读文章</a>
            </p>
        </div>
        <ul class="postmetadata">
            <li class="icon_comment icon_r">
                <a href="@pv.Post.Url">@pv.Post.Comments.Count() + " 条评论"</a>
            </li>
            <li class="icon_cat"><strong>分类:</strong>
                @foreach (var category in pv.Categories)
                {
                   <a href="@category.Url">@category.Name</a>
                }
            </li>
            <li class="icon_tag"><strong>标签:</strong>
                @foreach (var tag in pv.Tags)
                {
                    <a href="@tag.Url">@tag.Name</a>
                }
            </li>
        </ul>
    </div>
}
